from Tkinter import Frame, Label, StringVar, NE, SW, E, W, GROOVE

class StatusBar(Frame):
    def __init__(self, master, info="", status="", info_weight=5, status_weight=1):
        Frame.__init__(self, master)
        self.columnconfigure(0, weight=info_weight)
        self.columnconfigure(1, weight=status_weight)
        self.info = StringVar(value=info)
        self.status = StringVar(value=status)
        info_label = Label(self, relief=GROOVE, textvariable=self.info, anchor=W)
        status_label = Label(self, relief=GROOVE, textvariable=self.status, anchor=E)
        info_label.grid(row=0, column=0, sticky=NE+SW)
        status_label.grid(row=0, column=1, sticky=NE+SW)
        